#ifndef __TTOOLBUTTON_H__
#define __TTOOLBUTTON_H__

#include "stdafx.h"

class TToolButton : public QPushButton
{
    typedef QPushButton _base;
public:
    explicit TToolButton(QWidget *parent = 0);
    explicit TToolButton(const QString &text, QWidget *parent = 0);
    ~TToolButton();
    void SetBgImage(QString filePath);
protected:
    void Init();
    void paintEvent(QPaintEvent *e);
    void keyPressEvent(QKeyEvent *e);
protected:
    QImage m_pressedImage;
    QImage m_hoverImage;
};

#endif //__TTOOLBUTTON_H__
